package com.mvc.dao;

import com.mvc.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDAO {

    public User getUser(Long id);

    public List<User> findUser(String username);

    public int updateUser(User user);

    public int insertUser(User user);

    public int deleteUser(Long id);

}
